package com.ude.pim.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author yb
 * @since 2023-08-25
 */
@Getter
@Setter
@TableName("pim_demand")
public class Demand implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("name")
    private String name;

    /**
     * 需求创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 需求更新时间（一般是需求完成时间）
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 0：正常，1删除
     */
    @TableField("deleted")
    @TableLogic
    private Integer deleted;
}
